<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/dist/css/bootstrap.min.css">
	<title>企业注册</title>
</head>
<body>
<c:if test="${!empty message}">
	<div class="alert alert-warning alert-dismissible" role="alert">
	  <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
	 <strong>${message }</strong>
	</div>
</c:if>
<div style="width:500px;margin:100px auto">
	 <h1>企业注册</h1>
	 <hr>
		<form class="form-horizontal" role="form" action="<%=request.getContextPath() %>/CompanyServlet?command=add" method="post" onsubmit="return validate();">
		  <div class="form-group">
		    <label for="code" class="col-sm-2 control-label">帐号：</label>
		    <div class="col-sm-10">
		      <input type="text" class="form-control" id="code" name="code" placeholder="请输入帐号（长度6~12）"><span id="codeInfo"></span>
		    </div>
		  </div>
		  <div class="form-group">
			    <label for="password" class="col-sm-2 control-label">密码：</label>
			    <div class="col-sm-10">
			      <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码（长度6~12）"><span id="passwordInfo"></span>
			    </div>
		  </div>
		  <div class="form-group">
			    <label for="password2" class="col-sm-2 control-label">确认密码：</label>
			    <div class="col-sm-10">
			      <input type="password" class="form-control" id="password2" name="password2" placeholder="请输入密码（长度6~12）"><span id="password2Info"></span>
			    </div>
		  </div>
		   <div class="form-group">
			    <label for="name" class="col-sm-2 control-label">公司名称：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="name" name="name" placeholder="请输入姓名"><span id="nameInfo"></span>
			    </div>
		  </div>
		   <div class="form-group">
			    <label for="phone" class="col-sm-2 control-label">手机：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="phone" name="phone" placeholder="请输入联系手机号码"><span id="phoneInfo"></span>
			    </div>
		  </div>
		   <div class="form-group">
			    <label for="email" class="col-sm-2 control-label">email：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="email" name="email" placeholder="请输入email"><span id="emailInfo"></span>
			    </div>
		  </div>
		  <div class="form-group">
			    <label for="linkman" class="col-sm-2 control-label">联系人：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="linkman" name="linkman" placeholder="请输入联系人"><span id="emailInfo"></span>
			    </div>
		  </div>
		  <div class="form-group">
			    <label for="address" class="col-sm-2 control-label">公司地址：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="address" name="address" placeholder="请输入公司地址"><span id="emailInfo"></span>
			    </div>
		  </div>
		  <div class="form-group">
			    <label for="numbers" class="col-sm-2 control-label">公司人数：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="numbers" name="numbers" placeholder="请输入公司地址"><span id="emailInfo"></span>
			    </div>
		  </div>
		  <div class="form-group">
			    <label for="slogan" class="col-sm-2 control-label">公司宗旨：</label>
			    <div class="col-sm-10">
			      <input type="text" class="form-control" id="slogan" name="slogan" placeholder="请输入公司地址"><span id="emailInfo"></span>
			    </div>
		  </div>
		  <div class="form-group">
		    <div class="col-sm-offset-2 col-sm-10">
		      <button type="submit" class="btn btn-info btn-lg">注册</button>
		    </div>
		  </div>
		</form>
	</div>

		<script src="<%=request.getContextPath() %>/static/common/jquery.min.js"></script>
		<script src="<%=request.getContextPath() %>/static/common/dist/js/bootstrap.min.js"></script>

		
</body>
</html>